package com.eddie.factory.factorymethod.pizzastore.order;

import com.eddie.factory.constant.PizzaConstant;
import com.eddie.factory.factorymethod.pizzastore.pizza.Pizza;
/**
 * @author Eddie
 * @date 2022/4/29 12:46
 */
public class BeijingOrderPizza extends OrderPizza {

    private static final String REGION = "北京";

    @Override
    protected Pizza createTastePizza(PizzaConstant type, String region) {
        return super.createTastePizza(type, region);
    }

    @Override
    public Pizza createPizza(PizzaConstant type) {
        return createTastePizza(type, REGION);
    }
}
